package com.example.jasypt.service;

import com.example.jasypt.component.DefaultLazyEncryptor;
import org.jasypt.encryption.StringEncryptor;
import org.springframework.stereotype.Service;

/**
 * <p>
 *
 * </p>
 *
 * @author 王令
 * @since 2022/9/2 22:11
 */
@Service
public class EncryptorService {

    public StringEncryptor stringEncryptor(String password) {
        return new DefaultLazyEncryptor(password);
    }
}
